﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Tools.Ribbon;
using System.Windows.Forms;

namespace ourAdd_in
{
    public partial class RibMaHoa : OfficeRibbon
    {
        public RibMaHoa()
        {
            InitializeComponent();
             
        }

        private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
        {

        }

        private void btnLogin_Click(object sender, RibbonControlEventArgs e)
        {
            frmLogIn f = new frmLogIn();
            f.OnLogIn+=new frmLogIn.logIn_FireRibbon(LogIn);
            f.Show();
           
        }

        private void btnRegister_Click(object sender, RibbonControlEventArgs e)
        {
            Form f = new frmRegister();
            if (f.ShowDialog()==DialogResult.OK)
            {

            }

        }

        private void btnUpdate_Click(object sender, RibbonControlEventArgs e)
        {
            Form f = new frmUpdate();
            f.Show();
        }

        private void LogIn()
        {
            groupEn_De.Visible = true;
            groupSign.Visible = true;
        }
        
    }
}
